package com.xl.factoryMethodPattern.practice;

public abstract class ConnectorFactory {

    //定义一个创建方法，返回一个连接器
    public abstract Connector createConnector();

    public void connect(String message) {
        Connector connector = createConnector();
        connector.connect(message);
    }
}
